package com.atguigu.gmall.activity.client;

import com.atguigu.gmall.model.activity.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author 李旭
 * @date 2021/12/7 16:06
 * @Description:
 */
@FeignClient(name = "service-activity")
public interface SeckillGoodsFeignClient {

    //查询秒杀频道页面的 秒杀商品集合
    @GetMapping("/api/activity/seckill/list")
    public List<SeckillGoods> list();
    //查询秒杀详情页面
    @GetMapping("/api/activity/seckill/detail/{skuId}")
    public SeckillGoods detail(@PathVariable Long skuId);
}
